package com.jeejio.train.util;

public class UserException extends Exception {
    private int errorCode;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public UserException() {}

    public UserException(int errorCode) {
        this.errorCode = errorCode;
    }

    public UserException(String message) {
        super(message);
    }

    public UserException(int errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }
}
